﻿function GetPageInfo() {
    var dialogDiv = $("#EditPage");
    var pageInfo = {
        PageTitle: $(dialogDiv).find("#txtTitle").val(),
        Url: $(dialogDiv).find("#txtPageUrl").val(),
        ImageUrl: $(dialogDiv).find("#txtImageUrl").val(),
        ParentId: $(dialogDiv).find("#ddlParents option:selected").val(),
        Description: $(dialogDiv).find("#txtDescription").val(),
        ShowOnMenu: $(dialogDiv).find("#chkShowOnMenu").val() == '1' ? true : false
    };

    return pageInfo;
}

function ShowMessage(message) {
    alert(message);
}

$(document).ready(function () {
    $('.action-button').live("click", function myfunction() {
        var pageId = $(this).attr("userid");
        DeletePage(pageId);
    });
}
);

